export default {
  type: 'line',
  yAxisIndex: 1,
  lineStyle: {
    type: 'solid',
    color: '#ccc',
    opacity: 0.2
  },
  areaStyle: {
    color: '#ccc',
    opacity: 0.2
  },
  markPoint: {
    symbolSize: 1,
    symbolOffset: [0, '50%'],
    label: {
      formatter: function (params) {
        const {
          data: { aliasName }
        } = params
        return `{b|${aliasName}}`
      },
      backgroundColor: 'rgba(71, 203, 137, .7)',
      borderColor: '#aaa',
      borderWidth: 1,
      position: 'right',
      distance: 5,
      borderRadius: 2,
      padding: [4, 10],
      rich: {
        b: {
          align: 'center',
          color: '#fff',
          fontSize: 12,
          textShadowBlur: 2,
          textShadowColor: '#000',
          textShadowOffsetX: 0,
          textShadowOffsetY: 1,
          textBorderColor: '#333',
          textBorderWidth: 2
        }
      }
    }
  }
}
